package com.sinai.mshab.client.ui.validate;

import com.sinai.mshab.client.ui.basic.BasicFormComponent;

/**
 * This validator will pass if there is some information given. 
 * Will fail if the information is empty.
 * @author serge
 *
 */
public class NonEmptyValidator extends Validator {

	public boolean validate(BasicFormComponent component) {
		String value = component.getAnswer().getFirstAnswer();
		return value.length() > 0;
	}

}
